import request from "@/utils/request";



export function addFace(data) {
  return request({
    url: '/faceRegistration/addFace',
    method: 'post',
    data: {
      photoData: data.photoData,
      userId: data.userId
    }
  })
}
export function searchFace(data) {
  return request({
    url: '/faceSearch/search',
    method: 'post',
    data: {
      photoData: data.photoData,
      userId: data.userId
    }
  });
}

/*export function searchFace(trainingPlanId) {
    return request({
        url: '/testPaper/selectedQuestionAndScore?trainingPlanId=' + trainingPlanId ,
        method: 'get',
    })
}*/


export function getAgencyList() {
  return request({
    url: '/agency/getAgencyList',
    method: 'get',
  })
}

export function changeAgency(agency) {
  return request({
    url: '/agency/updateAgency',
    method: 'post',
    data: agency
  })
}

export function deleteAgency(ids) {
  return request({
    url: '/agency/deleteAgency',
    method: 'delete',
    data: ids
  })
}

export function addAgency(agency) {
  return request({
    url: '/agency/addAgency',
    method: 'post',
    data: agency
  })
}





